import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import moment from 'moment';

Vue.use(require('vue-moment'));
Vue.prototype.moment = moment;
Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.filter('dateYMDHMSFormat', function (dateStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
	return moment(dateStr).format(pattern);
});
new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount('#app');
